<?php echo use_helper('jQuery') ?>

<?php slot('section') ?>
    <?php include_partial('section/show'.$section->getType()->getType(), array('section' => $section))?>
<?php end_slot() ?>

<?php slot('elements')?>
    <?php include_partial('section/elements',
            array(
                'element_types' => $section->getType()->getSupports(),
                'section' => $section
            )
        )?>
<?php end_slot()?>

<?php echo jq_javascript_tag(
        jq_update_element_function('elements_content', array('content' => get_slot('elements')))
        .
        jq_update_element_function('main', array('content' => get_slot('section')))
    )?>